import { Controller, Get, Post, Body, Param, Patch, Delete } from '@nestjs/common';
import { TUserService } from './t-user.service';

@Controller('api/t-user')
export class TUserController {
  constructor(private readonly tUserService: TUserService) {}

  @Post()
  create(@Body() data: any) {
    return this.tUserService.create(data);
  }

  @Get()
  findAll() {
    return this.tUserService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.tUserService.findOne(id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() data: any) {
    return this.tUserService.update(id, data);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.tUserService.remove(id);
  }
} 